{
  "id": "2aa761d3-cd30-419a-a441-2f042934116f",
  "name": "service-to-deployment-network",
  "schemaVersion": "designs.meshery.io/v1beta1",
  "version": "0.0.2",
  "metadata": {
    "resolvedAliases": {
      "cadad307-e39e-449d-bd7c-d3cf6a0b536e": {
        "alias_component_id": "cadad307-e39e-449d-bd7c-d3cf6a0b536e",
        "immediate_parent_id": "20b9e320-8329-4804-ab5c-3da8c620cac5",
        "immediate_ref_field_path": [
          "configuration",
          "spec",
          "template",
          "spec",
          "containers",
          "0"
        ],
        "relationship_id": "c7b6e9fa-4443-4010-bd41-35958a4f6277",
        "resolved_parent_id": "20b9e320-8329-4804-ab5c-3da8c620cac5",
        "resolved_ref_field_path": [
          "configuration",
          "spec",
          "template",
          "spec",
          "containers",
          "0"
        ]
      }
    }
  },
  "components": [
    {
      "id": "cadad307-e39e-449d-bd7c-d3cf6a0b536e",
      "schemaVersion": "components.meshery.io/v1beta1",
      "version": "v1.0.0",
      "displayName": "containers.0",
      "description": "",
      "format": "JSON",
      "modelReference": {
        "version": "v1.0.0",
        "name": "meshery-core",
        "displayName": "Meshery Core",
        "id": "00000000-0000-0000-0000-000000000000",
        "registrant": {
          "kind": "meshery"
        },
        "model": {
          "version": "0.7.2"
        }
      },
      "styles": {
        "primaryColor": "#326CE5",
        "secondaryColor": "#00D3A9",
        "shape": "circle",
        "svgColor": "ui/public/static/img/meshmodels/meshery-core/color/container-color.svg",
        "svgComplete": "",
        "svgWhite": "ui/public/static/img/meshmodels/meshery-core/white/container-white.svg"
      },
      "capabilities": null,
      "status": "enabled",
      "metadata": {
        "configurationUISchema": "",
        "genealogy": "",
        "hasInvalidSchema": true,
        "instanceDetails": null,
        "isAnnotation": true,
        "isNamespaced": false,
        "published": false
      },
      "configuration": null,
      "component": {
        "version": "core.meshery.io/v1alpha1",
        "kind": "Container",
        "schema": ""
      }
    },
    {
      "id": "cf638c51-7108-4a84-9db8-5eea9f61a3b7",
      "schemaVersion": "components.meshery.io/v1beta1",
      "version": "v1.0.0",
      "displayName": "default",
      "description": "",
      "format": "JSON",
      "modelReference": {
        "version": "v1.0.0",
        "name": "kubernetes",
        "displayName": "Kubernetes",
        "id": "00000000-0000-0000-0000-000000000000",
        "registrant": {
          "kind": "github"
        },
        "model": {
          "version": "v1.35.0-rc.0"
        }
      },
      "styles": {
        "background-image": "none",
        "background-opacity": 0.5,
        "border-style": "dashed",
        "border-width": 2,
        "height": 80,
        "primaryColor": "#326CE5",
        "secondaryColor": "#7aa1f0",
        "shape": "rectangle",
        "svgColor": "ui/public/static/img/meshmodels/kubernetes/color/namespace-color.svg",
        "svgComplete": "ui/public/static/img/meshmodels/kubernetes/complete/namespace-complete.svg",
        "svgWhite": "ui/public/static/img/meshmodels/kubernetes/white/namespace-white.svg",
        "width": 80
      },
      "capabilities": null,
      "status": "enabled",
      "metadata": {
        "configurationUISchema": "",
        "genealogy": "parent",
        "instanceDetails": null,
        "isAnnotation": false,
        "isNamespaced": true,
        "published": false,
        "source_uri": "git://github.com/kubernetes/kubernetes/master/api/openapi-spec/v3"
      },
      "configuration": null,
      "component": {
        "version": "v1",
        "kind": "Namespace",
        "schema": ""
      }
    },
    {
      "id": "20b9e320-8329-4804-ab5c-3da8c620cac5",
      "schemaVersion": "components.meshery.io/v1beta1",
      "version": "v1.0.0",
      "displayName": "deployment-di",
      "description": "",
      "format": "JSON",
      "modelReference": {
        "version": "v1.0.0",
        "name": "kubernetes",
        "displayName": "Kubernetes",
        "id": "00000000-0000-0000-0000-000000000000",
        "registrant": {
          "kind": "github"
        },
        "model": {
          "version": "v1.35.0-rc.0"
        }
      },
      "styles": {
        "background-image": "none",
        "background-opacity": 0.5,
        "body-text": "",
        "body-text-color": "#808080",
        "body-text-font-size": 12,
        "body-text-font-weight": "400",
        "body-text-horizontal-align": "center",
        "body-text-vertical-align": "center",
        "border-width": 2,
        "height": 24,
        "opacity": 1,
        "padding": 6,
        "position": {
          "x": 580,
          "y": 527
        },
        "primaryColor": "#326CE5",
        "secondaryColor": "#7aa1f0",
        "shape": "round-rectangle",
        "svgColor": "ui/public/static/img/meshmodels/kubernetes/color/deployment-color.svg",
        "svgComplete": "ui/public/static/img/meshmodels/kubernetes/complete/deployment-complete.svg",
        "svgWhite": "ui/public/static/img/meshmodels/kubernetes/white/deployment-white.svg",
        "width": 24,
        "z-index": 1
      },
      "capabilities": null,
      "status": "enabled",
      "metadata": {
        "configurationUISchema": "",
        "genealogy": "parent",
        "instanceDetails": null,
        "isAnnotation": false,
        "isNamespaced": true,
        "published": false
      },
      "configuration": {
        "metadata": {
          "namespace": "default"
        },
        "spec": {
          "selector": {
            "matchLabels": {
              "app": "meshery"
            }
          },
          "template": {
            "spec": {
              "containers": [
                {
                  "args": [],
                  "command": [],
                  "env": [],
                  "envFrom": [],
                  "name": "",
                  "ports": [
                    {
                      "containerPort": 8080,
                      "protocol": "TCP"
                    }
                  ],
                  "resizePolicy": [],
                  "restartPolicyRules": [],
                  "volumeDevices": [],
                  "volumeMounts": []
                }
              ]
            }
          }
        }
      },
      "component": {
        "version": "apps/v1",
        "kind": "Deployment",
        "schema": ""
      }
    },
    {
      "id": "9dc01b8b-5cae-44b0-b8d7-c27da5f7c1b8",
      "schemaVersion": "components.meshery.io/v1beta1",
      "version": "v1.0.0",
      "displayName": "service-nh",
      "description": "",
      "format": "JSON",
      "modelReference": {
        "version": "v1.0.0",
        "name": "kubernetes",
        "displayName": "Kubernetes",
        "id": "00000000-0000-0000-0000-000000000000",
        "registrant": {
          "kind": "github"
        },
        "model": {
          "version": "v1.35.0-rc.0"
        }
      },
      "styles": {
        "background-opacity": 1,
        "background-position-y": "4.5",
        "body-text": "",
        "body-text-color": "#808080",
        "body-text-font-size": 12,
        "body-text-font-weight": "400",
        "body-text-horizontal-align": "center",
        "body-text-vertical-align": "center",
        "border-width": 0,
        "height": 20,
        "opacity": 1,
        "padding": 12,
        "position": {
          "x": 444,
          "y": 528
        },
        "primaryColor": "#326CE5",
        "secondaryColor": "#7aa1f0",
        "shape": "round-triangle",
        "svgColor": "ui/public/static/img/meshmodels/kubernetes/color/service-color.svg",
        "svgComplete": "",
        "svgWhite": "ui/public/static/img/meshmodels/kubernetes/white/service-white.svg",
        "width": 20,
        "z-index": 0
      },
      "capabilities": null,
      "status": "enabled",
      "metadata": {
        "configurationUISchema": "",
        "genealogy": "",
        "instanceDetails": null,
        "isAnnotation": false,
        "isNamespaced": true,
        "published": false
      },
      "configuration": {
        "metadata": {
          "namespace": "default"
        },
        "spec": {
          "ports": [
            {
              "name": "http",
              "port": 8080,
              "protocol": "TCP",
              "targetPort": 8080
            }
          ],
          "selector": {
            "app": "meshery"
          }
        }
      },
      "component": {
        "version": "v1",
        "kind": "Service",
        "schema": ""
      }
    }
  ],
  "relationships": [
    {
      "id": "0329f755-588d-47e6-9db5-254909c713c8",
      "evaluationQuery": "",
      "kind": "hierarchical",
      "metadata": {
        "description": "Namespace to namespaced components",
        "styles": {
          "primaryColor": "",
          "svgColor": "",
          "svgWhite": ""
        },
        "isAnnotation": false
      },
      "model": {
        "version": "v1.0.0",
        "name": "kubernetes",
        "displayName": "Kubernetes",
        "id": "00000000-0000-0000-0000-000000000000",
        "registrant": {
          "kind": "github"
        },
        "model": {
          "version": "v1.35.0-rc.0"
        }
      },
      "schemaVersion": "relationships.meshery.io/v1alpha3",
      "selectors": [
        {
          "allow": {
            "from": [
              {
                "id": "9dc01b8b-5cae-44b0-b8d7-c27da5f7c1b8",
                "kind": "*",
                "match": {},
                "match_strategy_matrix": null,
                "model": {
                  "version": "",
                  "name": "*",
                  "displayName": "",
                  "id": "00000000-0000-0000-0000-000000000000",
                  "registrant": {
                    "kind": ""
                  },
                  "model": {
                    "version": ""
                  }
                },
                "patch": {
                  "patchStrategy": "replace",
                  "mutatedRef": [
                    [
                      "configuration",
                      "metadata",
                      "namespace"
                    ]
                  ]
                }
              }
            ],
            "to": [
              {
                "id": "cf638c51-7108-4a84-9db8-5eea9f61a3b7",
                "kind": "Namespace",
                "match": {},
                "match_strategy_matrix": null,
                "model": {
                  "version": "",
                  "name": "kubernetes",
                  "displayName": "",
                  "id": "00000000-0000-0000-0000-000000000000",
                  "registrant": {
                    "kind": "github"
                  },
                  "model": {
                    "version": ""
                  }
                },
                "patch": {
                  "patchStrategy": "replace",
                  "mutatorRef": [
                    [
                      "displayName"
                    ]
                  ]
                }
              }
            ]
          }
        }
      ],
      "subType": "inventory",
      "status": "approved",
      "type": "parent",
      "version": "v1.0.0"
    },
    {
      "id": "b23c7cf2-5d99-4fce-8e10-f490dbdff49f",
      "evaluationQuery": "",
      "kind": "edge",
      "metadata": {
        "description": "A relationship that defines network edges between components",
        "styles": {
          "primaryColor": "",
          "svgColor": "",
          "svgWhite": ""
        },
        "isAnnotation": false
      },
      "model": {
        "version": "v1.0.0",
        "name": "kubernetes",
        "displayName": "Kubernetes",
        "id": "00000000-0000-0000-0000-000000000000",
        "registrant": {
          "kind": "github"
        },
        "model": {
          "version": "v1.35.0-rc.0"
        }
      },
      "schemaVersion": "relationships.meshery.io/v1alpha3",
      "selectors": [
        {
          "allow": {
            "from": [
              {
                "id": "9dc01b8b-5cae-44b0-b8d7-c27da5f7c1b8",
                "kind": "Service",
                "match": {},
                "match_strategy_matrix": [
                  [
                    "to_contains_from",
                    "not_null"
                  ],
                  [
                    "equal_as_strings",
                    "not_null"
                  ],
                  [
                    "equal"
                  ]
                ],
                "model": {
                  "version": "",
                  "name": "kubernetes",
                  "displayName": "",
                  "id": "00000000-0000-0000-0000-000000000000",
                  "registrant": {
                    "kind": "github"
                  },
                  "model": {
                    "version": ""
                  }
                },
                "patch": {
                  "patchStrategy": "replace",
                  "mutatorRef": [
                    [
                      "configuration",
                      "spec",
                      "selector"
                    ],
                    [
                      "configuration",
                      "spec",
                      "ports",
                      "0",
                      "targetPort"
                    ],
                    [
                      "configuration",
                      "spec",
                      "ports",
                      "0",
                      "protocol"
                    ]
                  ]
                }
              }
            ],
            "to": [
              {
                "id": "20b9e320-8329-4804-ab5c-3da8c620cac5",
                "kind": "Deployment",
                "match": {},
                "match_strategy_matrix": null,
                "model": {
                  "version": "",
                  "name": "kubernetes",
                  "displayName": "",
                  "id": "00000000-0000-0000-0000-000000000000",
                  "registrant": {
                    "kind": "github"
                  },
                  "model": {
                    "version": ""
                  }
                },
                "patch": {
                  "patchStrategy": "replace",
                  "mutatedRef": [
                    [
                      "configuration",
                      "spec",
                      "selector",
                      "matchLabels"
                    ],
                    [
                      "configuration",
                      "spec",
                      "template",
                      "spec",
                      "containers",
                      "0",
                      "ports",
                      "0",
                      "containerPort"
                    ],
                    [
                      "configuration",
                      "spec",
                      "template",
                      "spec",
                      "containers",
                      "0",
                      "ports",
                      "0",
                      "protocol"
                    ]
                  ]
                }
              }
            ]
          },
          "deny": {
            "from": null,
            "to": null
          }
        }
      ],
      "subType": "network",
      "status": "approved",
      "type": "non-binding",
      "version": "v1.0.0"
    },
    {
      "id": "c7b6e9fa-4443-4010-bd41-35958a4f6277",
      "evaluationQuery": "",
      "kind": "hierarchical",
      "metadata": {
        "description": "A hierarchical inventory relationship in which the configuration of (parent) component is patched with the configuration of other (child) component. Eg: The configuration of the EnvoyFilter (parent) component is patched with the configuration as received from WASMFilter (child) component.",
        "styles": {
          "primaryColor": "",
          "svgColor": "",
          "svgWhite": ""
        },
        "isAnnotation": false
      },
      "model": {
        "version": "v1.0.0",
        "name": "kubernetes",
        "displayName": "Kubernetes",
        "id": "00000000-0000-0000-0000-000000000000",
        "registrant": {
          "kind": "github"
        },
        "model": {
          "version": "v1.35.0-rc.0"
        }
      },
      "schemaVersion": "relationships.meshery.io/v1alpha3",
      "selectors": [
        {
          "allow": {
            "from": [
              {
                "id": "cadad307-e39e-449d-bd7c-d3cf6a0b536e",
                "kind": "Container",
                "match": {},
                "match_strategy_matrix": null,
                "model": {
                  "version": "",
                  "name": "meshery-core",
                  "displayName": "",
                  "id": "00000000-0000-0000-0000-000000000000",
                  "registrant": {
                    "kind": "github"
                  },
                  "model": {
                    "version": ""
                  }
                },
                "patch": {
                  "patchStrategy": "replace",
                  "mutatorRef": [
                    [
                      "configuration",
                      "spec",
                      "template",
                      "spec",
                      "containers",
                      "0"
                    ]
                  ],
                  "mutatedRef": [
                    [
                      "configuration",
                      "spec",
                      "template",
                      "spec",
                      "containers",
                      "0"
                    ]
                  ]
                }
              }
            ],
            "to": [
              {
                "id": "20b9e320-8329-4804-ab5c-3da8c620cac5",
                "kind": "Deployment",
                "match": {},
                "match_strategy_matrix": null,
                "model": {
                  "version": "",
                  "name": "kubernetes",
                  "displayName": "",
                  "id": "00000000-0000-0000-0000-000000000000",
                  "registrant": {
                    "kind": "github"
                  },
                  "model": {
                    "version": ""
                  }
                },
                "patch": {
                  "patchStrategy": "replace",
                  "mutatorRef": [
                    [
                      "configuration",
                      "spec",
                      "template",
                      "spec",
                      "containers",
                      "0"
                    ]
                  ],
                  "mutatedRef": [
                    [
                      "configuration",
                      "spec",
                      "template",
                      "spec",
                      "containers",
                      "0"
                    ]
                  ]
                }
              }
            ]
          },
          "deny": {
            "from": null,
            "to": null
          }
        }
      ],
      "subType": "alias",
      "status": "approved",
      "type": "parent",
      "version": "v1.0.0"
    },
    {
      "id": "da3034be-f608-4dfc-985f-b1df380150ae",
      "evaluationQuery": "",
      "kind": "hierarchical",
      "metadata": {
        "description": "Namespace to namespaced components",
        "styles": {
          "primaryColor": "",
          "svgColor": "",
          "svgWhite": ""
        },
        "isAnnotation": false
      },
      "model": {
        "version": "v1.0.0",
        "name": "kubernetes",
        "displayName": "Kubernetes",
        "id": "00000000-0000-0000-0000-000000000000",
        "registrant": {
          "kind": "github"
        },
        "model": {
          "version": "v1.35.0-rc.0"
        }
      },
      "schemaVersion": "relationships.meshery.io/v1alpha3",
      "selectors": [
        {
          "allow": {
            "from": [
              {
                "id": "20b9e320-8329-4804-ab5c-3da8c620cac5",
                "kind": "*",
                "match": {},
                "match_strategy_matrix": null,
                "model": {
                  "version": "",
                  "name": "*",
                  "displayName": "",
                  "id": "00000000-0000-0000-0000-000000000000",
                  "registrant": {
                    "kind": ""
                  },
                  "model": {
                    "version": ""
                  }
                },
                "patch": {
                  "patchStrategy": "replace",
                  "mutatedRef": [
                    [
                      "configuration",
                      "metadata",
                      "namespace"
                    ]
                  ]
                }
              }
            ],
            "to": [
              {
                "id": "cf638c51-7108-4a84-9db8-5eea9f61a3b7",
                "kind": "Namespace",
                "match": {},
                "match_strategy_matrix": null,
                "model": {
                  "version": "",
                  "name": "kubernetes",
                  "displayName": "",
                  "id": "00000000-0000-0000-0000-000000000000",
                  "registrant": {
                    "kind": "github"
                  },
                  "model": {
                    "version": ""
                  }
                },
                "patch": {
                  "patchStrategy": "replace",
                  "mutatorRef": [
                    [
                      "displayName"
                    ]
                  ]
                }
              }
            ]
          }
        }
      ],
      "subType": "inventory",
      "status": "approved",
      "type": "parent",
      "version": "v1.0.0"
    }
  ]
}